<%@ page language="java" import="java.util.*,com.ce.util.TreeNode" pageEncoding="UTF-8"%>
  <%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>表格统计</title>
		
		<!-- 1. Add these JavaScript inclusions in the head of your page -->
		<script type="text/javascript" src="<%=path %>/jslib/Highcharts-3.0.10/js/highcharts.js"></script> 
		<script type="text/javascript" src="<%=path %>/jslib/Highcharts-3.0.10/js/modules/exporting.js"></script>
		
		<!-- 1a) Optional: add a theme file -->
		<!--
			<script type="text/javascript" src="../js/themes/gray.js"></script>
		-->
		
		<!-- 1b) Optional: the exporting module -->
		
		
		<!-- 2. Add the JavaScript to initialize the chart on document ready -->
		<script type="text/javascript">
		
		
		$(function () {
	        
	        $("tspan:last").hide();
	    });		
		
				
		</script>
		
	</head>
	<body>		
		<!-- 3. Add the container -->
		<!-- 2015-06-10 by 修改，开始 -->
		<!-- 修改代码：添加“转接案源”列，为日期进入本年时生成的一次统计数据（每年一次），记录本年之前登记且未结案的案源数量 -->
		<table  class="table_" width="100%">
			<tr><th>项目</th><th>选案</th><th>暂存</th><th>检查</th><th>审理</th><th>执行</th><th>结案</th><th>小计</th><th>转接案源</th></tr>

			<%
				int cnt1=0,cnt2=0,cnt3=0,cnt4=0,cnt5=0,cnt6=0,cnt7=0,cnt8=0;
				Map<String,Integer> first=(Map<String,Integer>)request.getAttribute("first");	//一局

				if(first!=null&&first.size()>0)
				{
					int cunt=	(first.get("1")!=null?first.get("1"):0	)+
								(first.get("-2")!=null?first.get("-2"):0)+
								(first.get("2")!=null?first.get("2"):0	)+
								(first.get("3")!=null?first.get("3"):0	)+
								(first.get("4")!=null?first.get("4"):0	)+
								(first.get("9")!=null?first.get("9"):0);

					cnt1+=(first.get("1")!=null?first.get("1"):0	);
					cnt2+=(first.get("-2")!=null?first.get("-2"):0	);
					cnt3+=(first.get("2")!=null?first.get("2"):0	);
					cnt4+=(first.get("3")!=null?first.get("3"):0	);
					cnt5+=(first.get("4")!=null?first.get("4"):0	);
					cnt6+=(first.get("9")!=null?first.get("9"):0	);
					cnt7+=(first.get("not_end")!=null?first.get("not_end"):0);
					cnt8+=cunt;
			%>
				<tr>
					<th>一局</th>
					<th><%= first.get("1")!=null?first.get("1"):"0" %></th>
					<th><%= first.get("-2")!=null?first.get("-2"):"0" %></th>
					<th><%= first.get("2")!=null?first.get("2"):"0" %></th>
					<th><%= first.get("3")!=null?first.get("3"):"0" %></th>
					<th><%= first.get("4")!=null?first.get("4"):"0" %></th>
					<th><%= first.get("9")!=null?first.get("9"):"0" %></th>
					<th><%=cunt	%></th>
					<th><%= first.get("not_end")!=null?first.get("not_end"):"0" %></th>
				</tr>
			<%}
				else{%>
						<tr>
							<th>一局</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
						</tr>
					<%}%>
			<%--*********************************************************************************************--%>

			<%
				Map<String,Integer> second=(Map<String,Integer>)request.getAttribute("second");	//二局
				if(second!=null&&second.size()>0)
				{
					int cunt=	(second.get("1")!=null?second.get("1"):0)	+
								(second.get("-2")!=null?second.get("-2"):0)	+
								(second.get("2")!=null?second.get("2"):0)	+
								(second.get("3")!=null?second.get("3"):0)	+
								(second.get("4")!=null?second.get("4"):0)	+
								(second.get("9")!=null?second.get("9"):0);
					cnt1+=(second.get("1")!=null?second.get("1"):0);
					cnt2+=(second.get("-2")!=null?second.get("-2"):0);
					cnt3+=(second.get("2")!=null?second.get("2"):0);
					cnt4+=(second.get("3")!=null?second.get("3"):0);
					cnt5+=(second.get("4")!=null?second.get("4"):0);
					cnt6+=(second.get("9")!=null?second.get("9"):0);
					cnt7+=(second.get("not_end")!=null?second.get("not_end"):0);
					cnt8+=cunt;
			%>
					<tr>
						<th>二局</th>
						<th><%= second.get("1")!=null?second.get("1"):"0" %></th>
						<th><%= second.get("-2")!=null?second.get("-2"):"0" %></th>
						<th><%= second.get("2")!=null?second.get("2"):"0" %></th>
						<th><%= second.get("3")!=null?second.get("3"):"0" %></th>
						<th><%= second.get("4")!=null?second.get("4"):"0" %></th>
						<th><%= second.get("9")!=null?second.get("9"):"0" %></th>
						<th><%=cunt	%></th>
						<th><%= second.get("not_end")!=null?second.get("not_end"):"0" %></th>
					</tr>
			<%	}
				else{%>
						<tr>
							<th>二局</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
						</tr>
					<%}%>
			
			<%
			Map<String,Integer> three=(Map<String,Integer>)request.getAttribute("three");	//三局
			if(three!=null&&three.size()>0)
			{
				int cunt=(three.get("1")!=null?three.get("1"):0)+(three.get("-2")!=null?three.get("-2"):0)+(three.get("2")!=null?three.get("2"):0)+(three.get("3")!=null?three.get("3"):0)+(three.get("4")!=null?three.get("4"):0)+(three.get("9")!=null?three.get("9"):0);
				cnt1+=(three.get("1")!=null?three.get("1"):0);
				cnt2+=(three.get("-2")!=null?three.get("-2"):0);
				cnt3+=(three.get("2")!=null?three.get("2"):0);
				cnt4+=(three.get("3")!=null?three.get("3"):0);
				cnt5+=(three.get("4")!=null?three.get("4"):0);
				cnt6+=(three.get("9")!=null?three.get("9"):0);
				cnt7+=(three.get("not_end")!=null?three.get("not_end"):0);
				cnt8+=cunt;
			%>
			<tr><th>三局</th><th><%= three.get("1")!=null?three.get("1"):"0" %></th>	<th><%= three.get("-2")!=null?three.get("-2"):"0" %></th><th><%= three.get("2")!=null?three.get("2"):"0" %></th><th><%= three.get("3")!=null?three.get("3"):"0" %></th><th><%= three.get("4")!=null?three.get("4"):"0" %></th><th><%= three.get("9")!=null?three.get("9"):"0" %></th><th><%=cunt	%></th><th><%= three.get("not_end")!=null?three.get("not_end"):"0" %></th></tr>
			<%}
				else{%>
						<tr>
							<th>三局</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
						</tr>
					<%}%>
			

			<%
			Map<String,Integer> four=(Map<String,Integer>)request.getAttribute("four");	//四局
			if(four!=null&&four.size()>0)
			{
				int cunt=(four.get("1")!=null?four.get("1"):0)+(four.get("-2")!=null?four.get("-2"):0)+(four.get("2")!=null?four.get("2"):0)+(four.get("3")!=null?four.get("3"):0)+(four.get("4")!=null?four.get("4"):0)+(four.get("9")!=null?four.get("9"):0);
				cnt1+=(four.get("1")!=null?four.get("1"):0);
				cnt2+=(four.get("-2")!=null?four.get("-2"):0);
				cnt3+=(four.get("2")!=null?four.get("2"):0);
				cnt4+=(four.get("3")!=null?four.get("3"):0);
				cnt5+=(four.get("4")!=null?four.get("4"):0);
				cnt6+=(four.get("9")!=null?four.get("9"):0);
				cnt7+=(four.get("not_end")!=null?four.get("not_end"):0);
				cnt8+=cunt;
			%>
				<tr>
					<th>四局</th>
					<th><%= four.get("1")!=null?four.get("1"):"0" %></th>
					<th><%= four.get("-2")!=null?four.get("-2"):"0" %></th>
					<th><%= four.get("2")!=null?four.get("2"):"0" %></th>
					<th><%= four.get("3")!=null?four.get("3"):"0" %></th>
					<th><%= four.get("4")!=null?four.get("4"):"0" %></th>
					<th><%= four.get("9")!=null?four.get("9"):"0" %></th>
					<th><%=cunt	%></th>
					<th><%= four.get("not_end")!=null?four.get("not_end"):"0" %></th>
				</tr>
			<%}
				else{%>
						<tr>
							<th>四局</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
						</tr>
				<%	}%>
			
			
			<%
			Map<String,Integer> five=(Map<String,Integer>)request.getAttribute("five");	//五局
			if(five!=null&&five.size()>0)
			{
				int cunt=(five.get("1")!=null?five.get("1"):0)+(five.get("-2")!=null?five.get("-2"):0)+(five.get("2")!=null?five.get("2"):0)+(five.get("3")!=null?five.get("3"):0)+(five.get("4")!=null?five.get("4"):0)+(five.get("9")!=null?five.get("9"):0);
				cnt1+=(five.get("1")!=null?five.get("1"):0);
				cnt2+=(five.get("-2")!=null?five.get("-2"):0);
				cnt3+=(five.get("2")!=null?five.get("2"):0);
				cnt4+=(five.get("3")!=null?five.get("3"):0);
				cnt5+=(five.get("4")!=null?five.get("4"):0);
				cnt6+=(five.get("9")!=null?five.get("9"):0);
				cnt7+=(five.get("not_end")!=null?five.get("not_end"):0);
				cnt8+=cunt;
			%>

			<tr><th>五局</th><th><%= five.get("1")!=null?five.get("1"):"0" %></th><th><%= five.get("-2")!=null?five.get("-2"):"0" %></th><th><%= five.get("2")!=null?five.get("2"):"0" %></th><th><%= five.get("3")!=null?five.get("3"):"0" %></th><th><%= five.get("4")!=null?five.get("4"):"0" %></th><th><%= five.get("9")!=null?five.get("9"):"0" %></th><th><%=cunt	%></th><th><%= five.get("not_end")!=null?five.get("not_end"):"0" %></th></tr>
			<%}
				else{%>
						<tr>
							<th>五局</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
							<th>0</th>
						</tr>
					<%}%>
			
			<tr>
				<th>小计</th>
				<th><%=cnt1 %></th>
				<th><%=cnt2 %></th>
				<th><%=cnt3 %></th>
				<th><%=cnt4 %></th>
				<th><%=cnt5 %></th>
				<th><%=cnt6 %></th>
				<th><%=cnt8 %></th>
				<th><%=cnt7 %></th>
			</tr>
	</table>
		<!-- 2015-06-10 by 修改，结束 -->
		</div>
	</body>
</html>
